package com.ruoyi.basice_info.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 单元设置对象 tb_units
 *
 * @author hongyi
 * @date 2023-12-25
 */
public class TbUnits extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 单元ID */
    private Long unitsId;

    /** 单元代码 */
    @Excel(name = "单元代码")
    private String unitsCode;

    /** 单元名称 */
    @Excel(name = "单元名称")
    private String unitsName;

    /** 科目ID */
    @Excel(name = "科目ID")
    private Long subjectId;

    private TbSubject tbSubject;

    public TbSubject getTbSubject() {
        return tbSubject;
    }

    public void setTbSubject(TbSubject tbSubject) {
        this.tbSubject = tbSubject;
    }

    public void setUnitsId(Long unitsId)
    {
        this.unitsId = unitsId;
    }

    public Long getUnitsId()
    {
        return unitsId;
    }
    public void setUnitsCode(String unitsCode)
    {
        this.unitsCode = unitsCode;
    }

    public String getUnitsCode()
    {
        return unitsCode;
    }
    public void setUnitsName(String unitsName)
    {
        this.unitsName = unitsName;
    }

    public String getUnitsName()
    {
        return unitsName;
    }
    public void setSubjectId(Long subjectId)
    {
        this.subjectId = subjectId;
    }

    public Long getSubjectId()
    {
        return subjectId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("unitsId", getUnitsId())
                .append("unitsCode", getUnitsCode())
                .append("unitsName", getUnitsName())
                .append("subjectId", getSubjectId())
                .append("tbSubject", getTbSubject())
                .toString();
    }
}
